package com.gxa.insurance.util;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Min
 */
public class JsonResult {
    /**
     * 转换对象
     */
    private Map<String,Object> map=new HashMap<>();

    public JsonResult(){
    }
    public JsonResult(Integer code,String msg,Object data){
        map.put("code",code);
        map.put("msg",msg);
        map.put("data",data);
    }
    public void setCode(String code) {
        map.put("code",code);
    }


    public void setMsg(String msg) {
        map.put("msg",msg);
    }

    public void setData(Object data) {
        map.put("data",data);
    }

    public void put(String key,Object value){
        map.put(key,value);
    }
    public Map<String,Object> getMap(){
       return map;
    }

}
